package itheima.d02;

import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException, InterruptedException {
        Runtime r = Runtime.getRuntime();
        System.out.println(r.totalMemory());
        System.out.println("可用处理器数量："+r.availableProcessors());
        System.out.println("总内存："+r.totalMemory()/1024/1024+"M");
        System.out.println("空闲内存："+r.freeMemory() / 1024 / 1024+"M");
        Process program =r.exec("D:\\胡文冰\\douyin\\douyin.exe");
        Thread.sleep(5000);
        program.destroy();
    }
}
